/**
 * Copyright 2012 Fonfon.Fenceer
 * All rights reserved.
 * 
 * @project 
 * @author Fonfon.Fenceer
 * @version 1.0
 * @data 2012-3-10
 */
package com.guidecaptain.java.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * 
 * 
 * @author fonfon
 */
@Aspect
public class MyBefore {
//	@Pointcut(value="bean(*Service)") //命名切入点1  
//	private void pointcut1(){}  
//	@Pointcut(value="@args(cn.javass.spring.chapter6.Secure)") //命名切入点2  
//	private void pointcut2(){}  
//	   
//	@Before(value = "pointcut1() && pointcut2()")     //引用命名切入点  
//	public void referencePointcutTest1(JoinPoint jp) {  
//	    dump("pointcut1() && pointcut2()", jp);  
//	} 
	
	@Before("execution(* com.guidecaptain.java.aop.*.*(..))")
	public void b1() {
		System.out.println("now befoer--------->");
	}
}
